/**
 * Filters
 */
const ResizeUrl = (imgUrl, width, height) => {
  let url = `${imgUrl}?x-oss-process=image/resize,m_fill,w_${width * 2},h_${height * 2}`
  return url
}
const ToFixed = (value, decimalPlace = 2) => {
  return value.toFixed(decimalPlace)
}

export default {
  ResizeUrl,
  ToFixed
}